package com.wudl.govern.db.dialect;

import com.wudl.govern.db.core.DbColumn;
import com.wudl.govern.db.core.DbTable;
import com.wudl.govern.db.exception.DataQueryException;
import org.springframework.jdbc.core.RowMapper;

/**
 * @author ：wudl
 * @date ：Created in 2022-04-03 22:03
 * @description：未知 数据库方言
 * @modified By：
 * @version: 1.0
 */

public class UnknownDialect extends AbstractDbDialect {

    @Override
    public String columns(String dbName, String tableName) {
        throw new DataQueryException("不支持的数据库类型");
    }

    @Override
    public String tables(String dbName) {
        throw new DataQueryException("不支持的数据库类型");
    }

    @Override
    public String buildPaginationSql(String sql, long offset, long count) {
        throw new DataQueryException("不支持的数据库类型");
    }

    @Override
    public String count(String sql) {
        throw new DataQueryException("不支持的数据库类型");
    }

    @Override
    public RowMapper<DbColumn> columnMapper() {
        throw new DataQueryException("不支持的数据库类型");
    }

    @Override
    public RowMapper<DbTable> tableMapper() {
        throw new DataQueryException("不支持的数据库类型");
    }
}
